cmake_minimum_required(VERSION 3.5.0)

project(oal)

set(CMAKE_CXX_STANDARD 17)


add_subdirectory(oal)




if(UNIX)
set(DEP_PATH /usr/local)
endif()

set(CMAKE_INSTALL_INCLUDEDIR ${DEP_PATH})
set(CMAKE_INSTALL_LIBDIR ${DEP_PATH}/lib)

install(TARGETS oal
        ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
)

install(DIRECTORY oal
        DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})

